import React,{Component} from 'react';
import { BrowserRouter,Route,Switch}from 'react-router-dom';

import App from "../App/index"

import Evaluate from "../view/Evaluate/index"
import OrderList from "../view/OrderList/index"
import GenericNotFound from "../view/GenericNotFound/index"
// class Routes extends Component{
//     render(){
//         return(
//             <Router>
//             <div>
//                 <Route exact path='/' component={OrderList} ></Route>
//                 <Route exact path='/evaluate' component={Evaluate} ></Route>
//             </div>
//             </Router>
//         )
//     }
// }
const Routes = ()=>(
    <BrowserRouter>
        <Switch>
            <Route exact path='/' component={OrderList} ></Route>
            <Route exact path='/evaluate/:id' component={Evaluate} ></Route>
            <Route component={GenericNotFound} />
        </Switch>
    </BrowserRouter>
)
export default Routes